<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/4/23 0023
 * Time: 下午 3:03
 */

namespace app\moonlighting\controller;


use think\Controller;
use think\Session;
class Base extends Controller
{
    //判断是否登录
    public function _initialize()
    {
        //var_dump(Session::get('sport_admin'));
        if (!Session::has('sport_admin')) {
            $this->redirect('/moonlighting/login');
        }
    }
}